package com.jugheadzhou.emrpoc.service.impl;

import com.jugheadzhou.emrpoc.mapper.MedicalRecordTemplateMapper;
import com.jugheadzhou.emrpoc.model.MedicalRecordTemplate;
import com.jugheadzhou.emrpoc.service.MedicalRecordTemplateService;
import com.jugheadzhou.emrpoc.vo.MedicalRecordTemplateVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 病历模板业务层
 *
 * @author jugheadzhou
 * @date 2021-10-24
 */
@Slf4j
@Service
public class MedicalRecordTemplateServiceImpl implements MedicalRecordTemplateService {

    @Resource
    private MedicalRecordTemplateMapper medicalRecordTemplateMapper;

    /**
     * 查询已发布的模板
     *
     * @param type 病历类型
     * @return
     */
    @Override
    public List<MedicalRecordTemplateVo> listByPublished() {
        return medicalRecordTemplateMapper.listByPublished();
    }

    /**
     * 病历模板保存
     *
     * @param medicalRecordTemplate 病历模板对象
     * @return
     */
    @Override
    public MedicalRecordTemplate save(MedicalRecordTemplate medicalRecordTemplate) {
        return null;
    }

    /**
     * 病历模板删除
     *
     * @param id 病历模板主键ID
     * @return
     */
    @Override
    public int delete(String id) {
        return 0;
    }
}
